<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<c:set var="ctxStatic" value="${pageContext.request.contextPath}/static" />
<!DOCTYPE html>
<html> 
<head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > 
    <title>注册成功</title> 
    <meta name="viewport" content="height = device-height, width=device-width, initial-scale=1, user-scalable=no">
    <link href="${ctxStatic}/jqmobile/jquery.mobile-1.4.3/jquery.mobile-1.4.3.min.css" rel="stylesheet"> 
    <style type="text/css">
		a {
			text-decoration:none;
		}    
    </style>
	<script src="${ctxStatic}/jquery/1.11.1/jquery-1.11.1.min.js"></script>
	<script src="${ctxStatic}/jqmobile/jquery.mobile-1.4.3/jquery.mobile-1.4.3.min.js"></script>	
</head>
<body>
<div data-role="page" data-control-title="Home" id="page1">
<!-- 		<div data-role="header" data-theme="none" data-position="fixed">
			<h1>您关注的停电信息</h1>
			<a href="#" data-icon="search"  data-transition="slide"><font color="red">再查询</font></a>
		</div>
 -->
    <div data-role="content" data-theme="none">
        <div data-controltype="textblock" style=" text-align:left">
            <p>
            <strong>
                注册成功!<br><br>
                您可以下载<a id="xiazai" href="${ctx}/Kaka_android.apk" data-ajax="false"><font color="red"><i>卡卡商家客户端</i></font></a>。
                </strong>
            </p>
        </div>
    </div>
<div data-role="popup" id="popupMenu" class="ui-content" data-theme="b" style="max-width:280px">
    <a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a>
<p>点击右上角“在浏览器中打开”进行下载！</p>
</div>    
</div>
<script type="text/javascript">
$(document).ready(function(){
	if(isWeiXin()){ 
		$("#xiazai").empty();
		var $optbatch = $("<a id=\"xiazai\" class=\"btnShare fontBtn\"  href=\"#popupMenu\" data-rel=\"popup\" data-transition=\"pop\">下载店铺专用App(Android版)</a>");
		$('#xiazai').append($optbatch);
	}	
});
function isWeiXin(){ 
	var ua = window.navigator.userAgent.toLowerCase(); 
	if(ua.match(/MicroMessenger/i) == 'micromessenger'){ 
	return true; 
	}else{ 
	return false; 
	} 
	} 
</script>
</body> 
</html>